package routers

import (
	"github.com/gin-gonic/gin"
	v1 "perfect-admin/api/v1"
	"perfect-admin/middleware"
)

func InitFileRouter(Router *gin.RouterGroup)  {
	FileRouter := Router.Group("file").Use(middleware.JWTAuth())
	{
		FileRouter.GET("/getFileList", v1.GetFileList)
		FileRouter.POST("/uploadFile", v1.UploadFile)
		FileRouter.POST("/downloadFile", v1.FileDownload)
		FileRouter.POST("/deleteUploadFile", v1.DeleteUploadFile)
		FileRouter.PUT("updateFileName", v1.UpdateFileName)
	}
}
